package com.edu.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品订单实体类
 */
public class Orders {
    /**
     * 订单唯一ID（主键）
     */
    private Integer ordersId;

    /**
     * 商家ID
     */
    private Integer userId;

    /**
     * 购买用户ID（针对卖家/买家）
     */
    private Integer targetUserId;

    /**
     * 收货地：省份
     */
    private int addressid;

    private Date datatime;

    /**
     * 商品id
     */
    private Integer commodityId;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 订单总金额
     */
    private double money;

    /**
     * 交易方式
     */
    private int payMethod;

    /**
     * 订单状态 1已完成 2待发货 3已取消 4待付款
     */
    private Integer state;

    /**
     * 发货时间
     */
    private Date shipmentDate;

    // 无参构造方法
    public Orders() {
    }

    // getter和setter方法
    public Integer getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(Integer ordersId) {
        this.ordersId = ordersId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getTargetUserId() {
        return targetUserId;
    }

    public void setTargetUserId(Integer targetUserId) {
        this.targetUserId = targetUserId;
    }


    public Date getDatatime() {
        return datatime;
    }

    public void setDatatime(Date datatime) {
        this.datatime = datatime;
    }

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

   
    public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	

    public int getPayMethod() {
		return payMethod;
	}

	public void setPayMethod(int payMethod) {
		this.payMethod = payMethod;
	}

	public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getShipmentDate() {
        return shipmentDate;
    }

    public void setShipmentDate(Date shipmentDate) {
        this.shipmentDate = shipmentDate;
    }

	public int getAddressid() {
		return addressid;
	}

	public void setAddressid(int addressid) {
		this.addressid = addressid;
	}

	
    
}